﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="PurchaseAskPriceAdd.aspx.cs" Inherits="Pages_Office_PurchaseManager_PurchaseAskPriceAdd" %>

<%@ Register src="../../../UserControl/CodingRuleControl.ascx" tagname="CodingRuleControl" tagprefix="uc1" %>
<%@ Register src="../../../UserControl/CodeTypeDrpControl.ascx" tagname="CodeTypeDrpControl" tagprefix="uc2" %>

<%@ Register src="../../../UserControl/Message.ascx" tagname="Message" tagprefix="uc4" %>
<%@ Register src="../../../UserControl/ProductInfoUC.ascx" tagname="ProductInfoUC" tagprefix="uc5" %>
<%@ Register src="../../../UserControl/PurchaseManager/PurchaseApplyUC.ascx" tagname="PurchaseApplyUC" tagprefix="uc6" %>
<%@ Register src="../../../UserControl/PurchaseManager/PurchasePlanUC.ascx" tagname="PurchasePlanUC" tagprefix="uc7" %>
<%@ Register src="../../../UserControl/ProviderInfo.ascx" tagname="ProviderInfo" tagprefix="uc3" %>
<%@ Register src="../../../UserControl/FlowApply.ascx" tagname="FlowApply" tagprefix="uc8" %>
<%@ Register src="../../../UserControl/ProductInfoControl.ascx" tagname="ProductInfoControl" tagprefix="uc9" %>
<%@ Register Src="../../../UserControl/GetGoodsInfoByBarCode.ascx" TagName="GetGoodsInfoByBarCode" TagPrefix="uc15" %> 

<%@ Register src="../../../UserControl/Common/GetExtAttributeControl.ascx" tagname="GetExtAttributeControl" tagprefix="uc10" %>

<%@ Register src="../../../UserControl/Common/StorageSnapshot.ascx" tagname="StorageSnapshot" tagprefix="uc11" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>采购询价单</title>
        <script src="../../../js/common/Common.js" type="text/javascript"></script>

    <script src="../../../js/JQuery/jquery_last.js" type="text/javascript"></script>
    <script src="../../../js/JQuery/formValidator.js" type="text/javascript"></script>
    <script src="../../../js/JQuery/formValidatorRegex.js" type="text/javascript"></script>
    <script src="../../../js/Calendar/WdatePicker.js" type="text/javascript"></script>
    <script language="javascript" type="text/javascript" src="../../../js/common/PageBar-1.1.1.js"></script>
    <script src="../../../js/common/page.js" type="text/javascript"></script>
    <script src="../../../js/common/Check.js" type="text/javascript"></script>
    <script src="../../../js/common/UserOrDeptSelect.js" type="text/javascript"></script>
    <link rel="stylesheet" type="text/css" href="../../../css/default.css" />
    <link href="../../../css/pagecss.css" type="text/css" rel="Stylesheet" />
<link href="../../../css/validatorTidyMode.css" rel="stylesheet" type="text/css" />
<script src="../../../js/common/UnitGroup.js" type="text/javascript"></script>
    
    
    
    
</head>
<body>
    
 
    <form id="form1" runat="server">
       <input type="hidden" id="IsDisplayPrice" runat="server" value="" />
    <input id="HiddenPoint" type="hidden" runat="server" />
    <input id="HiddenMoreUnit" type="hidden" runat="server" />

     <uc9:ProductInfoControl ID="ProductInfoControl1" runat="server" />
    <table width="95%" height="57" border="0" cellpadding="0" cellspacing="0" class="maintable"
        id="mainindex">
        <tr>
            <td valign="top">
                <input type="hidden" id="hiddenEquipCode" value="" />
                <img src="../../../images/Main/Line.jpg" width="122" height="7" />
            </td>
            <td align="center" valign="top">
            </td>
        </tr>
        <tr>
            <td height="30" colspan="2" valign="top" class="Title">
                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                        <td height="30" align="center" class="Title" id="AddTitle">
                            新建采购询价单
                         
                            
                        </td>
                        <td height="30" align="center" class="Title" id="UpdateTitle" style="display:none">
                            采购询价单
                        </td>
                        <input type="hidden" id="HiddenAction" runat="server" value="Add" />
                            <input type="hidden" id="HiddenURLParams" runat="server" />
                            <input type="hidden" name='ThisID' id='ThisID' runat="server" value="0" />
                            <input type="hidden" id='IsCite' runat="server" />
                            <input type="hidden" id='FlowStatus' runat="server" />
                            <input type="hidden" id="ZCXJFlag" value="0" /><!--再次询价标志位-->
                    </tr>
                </table>
                <table width="99%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#999999">
                    <tr>
                        <td height="28" align="left" bgcolor="#FFFFFF">
                            <!-- Start 单据状态值 -->
                            <table width="100%">
                                <tr>
                                    <td>
                                        <img runat="server" visible="false" id="imgSave" src="../../../images/Button/Bottom_btn_save.jpg" onclick="SavePurchaseAskPrice();"
                                            style="cursor: pointer" title="保存" />
                                         <img runat="server" visible="false" alt="保存" src="../../../Images/Button/UnClick_bc.jpg" id="imgUnSave" style="display: none;" />   
                                            <span id="GlbFlowButtonSpan" runat="server" visible="false"></span>
                                        
                                        <!-- Start 审批 -->
                                        <!-- End 审批 -->
                                        
                                        <img runat="server" visible="false" alt="再次询价" src="../../../Images/Button/Button_zcxj.jpg" id="imgZcxj" style="display:none;" 
                                            onclick="fnAskPriceAgain();"/>
                                        <img runat="server" visible="false" alt="再次询价" src="../../../Images/Button/Button_uzcxj.jpg" id="imgUnZcxj" />
                                        <img  src="../../../Images/Button/Bottom_btn_back.jpg" alt="返回" id="btn_back"
                                            style=" display:none" onclick="DoBack();" />
                                        <img runat="server" visible="false" id="imgHis" alt="询价历史" src="../../../Images/Button/btn_xjls.jpg"   style="display:none " onclick="ShowHisory(1);"
                                           />
                                    </td>
                                    <td align="right">
                                        <img id="btnPrint" src="../../../images/Button/Main_btn_print.jpg" style="cursor: pointer" 
                                            title="打印" onclick="fnPrint();" />
                                            <uc5:ProductInfoUC ID="ProductInfoUC1" runat="server" />
                                    </td>
                                </tr>
                            </table>
                            <input type="hidden" id="hiddenBillStatus" name="hiddenBillStatus" value="0" />
                            <!-- End 单据状态值 -->
                            <!-- Start 流程处理-->
                            <!-- End 流程处理-->
                            <input type="hidden" id="txtIndentityID" value="0" runat="server" />
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td colspan="2" valign="top">
                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                        <td height="6">
                        </td>
                    </tr>
                </table>
                <table width="99%" border="0" align="center" cellpadding="2" cellspacing="1" bgcolor="#999999">
                    <tr>
                        <td height="20" bgcolor="#F4F0ED" class="Blue">
                            <table width="100%" border="0" cellspacing="0" cellpadding="3">
                                <tr>
                                    <td>
                                        基本信息
                                    </td>
                                    <td align="right">
                                        <div id='searchClick'>
                                            <img src="../../../images/Main/Close.jpg" style="cursor: pointer" onclick="oprItem('Tb_01','searchClick')" /></div>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
                <table width="99%" border="0" align="center" cellpadding="2" cellspacing="1" bgcolor="#999999"
                    id="Tb_01" style="display: block">
                    <tr>
                        <td height="20" align="right" class="tdColTitle" width="10%">
                            单据编号<span class="redbold">*</span>
                        </td>
                        <td height="20" class="tdColInput" width="23%">
                                <uc1:CodingRuleControl ID="PurAskPriceNo" runat="server" />
                            <%--<div id="divPurOrderNo" runat="server" class="tdinput" style="display: none">
                            </div>--%>
                        </td>
                        <td height="20" align="right" class="tdColTitle" width="10%">
                            主题 
                        </td>
                        <td height="20" class="tdColInput" width="23%">
                           
                            <input type="text" id="txtTitle" name="txtTitle" class="tdinput" style="width:90%" SpecialWorkCheck="主题"/>
                        </td>
                        <td height="20" align="right" class="tdColTitle" width="10%">
                            源单类型<span class="redbold">*</span>
                        </td>
                        <td height="20" class="tdColInput" width="23%">
                            <select name="ddlFromType" class="tdinput" width="119px" id="ddlFromType" onchange="fnChangeSource(this.value);">
                                <option value="0" selected="selected">无来源</option>
                                <option value="1">采购申请</option>
                                <option value="2">采购计划</option>
                            </select>
                        </td>
                        
                    </tr>
                    <tr>
                        <td height="20" align="right" class="tdColTitle" width="10%">
                            供应商<span class="redbold">*</span>
                        </td>
                        <td height="20" class="tdColInput" width="23%">
                            <uc3:ProviderInfo ID="ProviderInfo1" runat="server" />
                            <uc8:FlowApply ID="FlowApply1" runat="server" />
                            <input type="text" id="txtProviderName" name="txtProviderName" class="tdinput" readonly="readonly" style="width:90%" onclick="popProviderObj.ShowProviderList('txtProviderID','txtProviderName');"/>
                            <input type="hidden" id="txtProviderID" runat="server"  />
                        </td>
                        
                        <td height="20" align="right" class="tdColTitle" width="10%">
                            询价员<span class="redbold">*</span>
                        </td>
                        <td height="20" class="tdColInput" width="23%">
                            <input type="text" id="UserAskUserName" name="UserAskUserName" class="tdinput" readonly="readonly" onclick="alertdiv('UserAskUserName,txtAskUserID');" style="width:90%"/>
                            <input type="hidden" id="txtAskUserID" runat="server"  />
                        </td>
                        <td height="20" align="right" class="tdColTitle" width="10%">
                            采购类别<span class="redbold">*</span>
                        </td>
                        <td height="20" class="tdColInput" width="24%">
                            <uc2:CodeTypeDrpControl ID="ddlTypeID" runat="server" />
                        </td>
                    </tr>
                    <tr>
                        <td height="20" align="right" class="tdColTitle" width="10%">
                            部门<span class="redbold">*</span>
                        </td>
                        <td height="20" class="tdColInput" width="23%">
                            <input type="text" id="DeptName" name="DeptName" class="tdinput" readonly="readonly" onclick="alertdiv('DeptName,txtDeptID');" style="width:90%"/>
                            <input type="hidden" id="txtDeptID" runat="server"/>
                        </td>
                        <td height="20" align="right" class="tdColTitle" width="10%">
                            询价次数
                        </td>
                        <td height="20" class="tdColInput" width="23%">
                            <input type="text" id="txtAskOrder" name="txtAskOrder" class="tdinput" style="width:90%" value="1" disabled/>
                        </td>
                        <td height="20" align="right" class="tdColTitle" width="10%">
                            询价日期<span class="redbold">*</span>
                        </td>
                        <td height="20" class="tdColInput" width="24%">
                            <input type="text" id="txtAskDate" name="txtAskDate" class="tdinput"  readonly="readonly" style="width:90%" onclick="WdatePicker({dateFmt:'yyyy-MM-dd',el:$dp.$('txtAskDate')})"/>
                        </td>
                    </tr>
                    <tr>
                        <td height="20" align="right" class="tdColTitle" width="10%">
                            币种
                        </td>
                        <td height="20" class="tdColInput" width="23%">
                            <select name="ddlCurrencyType" class="tdinput" runat="server" width="119px" id="ddlCurrencyType"
                                onchange="ChangeCurreny()">
                            </select>
                            <input type="text" runat="server" id="CurrencyTypeID" name="CurrencyTypeID" class="tdinput"
                                style="display: none" />
                        </td>
                        <td height="20" align="right" class="tdColTitle" width="10%">
                            汇率
                        </td>
                        <td height="20" class="tdColInput" width="23%">
                            <asp:TextBox ID="txtExchangeRate" MaxLength="50" runat="server" CssClass="tdinput" disabled="disabled"
                                Width="95%"></asp:TextBox>
                        </td>
                        <td height="20" align="right" class="tdColTitle" width="10%">
                            是否为增值税
                        </td>
                        <td height="20" class="tdColInput" width="23%">
                            <input type="checkbox" id="chkIsAddTax" checked="checked" onclick="fnChangeAddTax();" /><label id="AddTax">是增值税</label>
                        </td>
                    </tr>
                </table>
                <uc10:GetExtAttributeControl ID="GetExtAttributeControl1" runat="server" />
                <table width="99%" border="0" align="center" cellpadding="2" cellspacing="1" bgcolor="#999999">
                    <tr>
                        <td height="20" bgcolor="#F4F0ED" class="Blue">
                            <table width="100%" border="0" cellspacing="0" cellpadding="3">
                                <tr>
                                    <td>
                                        合计信息
                                    </td>
                                    <td align="right">
                                        <div id='divButtonTotal'>
                                            <img src="../../../images/Main/Close.jpg" style="cursor: pointer" onclick="oprItem('Tb_02','divButtonTotal')" /></div>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
                <table width="99%" border="0" align="center" cellpadding="2" cellspacing="1" bgcolor="#999999"
                    id="Tb_02" style="display: block">
                    <tr>
                        <td height="20" align="right" class="tdColTitle" width="10%">
                            数量总计
                        </td>
                        <td height="20" align="left" class="tdColInput" width="23%">
                            <input type="text" id="txtCountTotal" name="txtCountTotal" class="tdinput" 
                                disabled="disabled"/>
                        </td>
                        <td height="20" align="right" class="tdColTitle" width="10%">
                            金额合计
                        </td>
                        <td height="20" align="left" class="tdColInput" width="23%">
                            <input type="text" id="txtTotalPrice" name="txtTotalPrice" maxlength="50" class="tdinput"
                                disabled="disabled" />
                        </td>
                        <td height="20" align="right" class="tdColTitle" width="10%">
                            税额合计
                        </td>
                        <td height="20" align="left" class="tdColInput" width="24%">
                            <input type="text" id="txtTotalTax" name="txtTotalTax" class="tdinput" 
                                disabled="disabled" />
                        </td>
                    </tr>
                    <tr>
                        <td height="20" align="right" class="tdColTitle" width="10%">
                            含税金额合计
                        </td>
                        <td height="20" align="left" class="tdColInput" width="23%">
                            <input type="text" id="txtTotalFee" name="txtTotalFee" class="tdinput" disabled="disabled"/>
                        </td>
                        <td height="20" align="right" class="tdColTitle" width="10%">
                            整单折扣
                        </td>
                        <td height="20" align="left" class="tdColInput" width="23%">
                            <input type="text" id="txtDiscount" name="txtDiscount" maxlength="50" class="tdinput"
                              onblur="Number_round(this,2);fnTotalInfo();" value="100" />
                        </td>
                        <td height="20" align="right" class="tdColTitle" width="10%">
                            折扣金额
                        </td>
                        <td height="20" align="left" class="tdColInput" width="24%">
                            <input type="text" id="txtDiscountTotal" name="txtDiscountTotal" class="tdinput"
                               disabled="disabled" />
                        </td>
                    </tr>
                    <tr>
                        <td height="20" align="right" class="tdColTitle" width="10%">
                            折后含税金额
                        </td>
                        <td height="20" align="left" class="tdColInput" width="23%">
                            <input type="text" id="txtRealTotal" name="txtRealTotal" class="tdinput" 
                                disabled="disabled" />
                        </td>
                        <td class="tdColTitle" >
                            
                            </td>
                        <td  class="tdColInput" >
                        </td>
                        <td class="tdColTitle">
                        </td>
                        <td class="tdColInput">
                        </td>
                    </tr>
                </table>
                <table width="99%" border="0" align="center" cellpadding="2" cellspacing="1" bgcolor="#999999">
                    <tr>
                        <td height="20" bgcolor="#F4F0ED" class="Blue">
                            <table width="100%" border="0" cellspacing="0" cellpadding="3">
                                <tr>
                                    <td>
                                        备注信息
                                    </td>
                                    <td align="right">
                                        <div id='divButtonNote'>
                                            <img src="../../../images/Main/Close.jpg" style="cursor: pointer" onclick="oprItem('Tb_03','divButtonNote')" /></div>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
                <table width="99%" border="0" align="center" cellpadding="2" cellspacing="1" bgcolor="#999999"
                    id="Tb_03" style="display: block">
                    <tr>
                        <td height="20" align="right" class="tdColTitle" width="10%">
                            制单人
                        </td>
                        <td height="20" class="tdColInput" width="23%">
                            <input type="hidden" id="txtCreatorID" name="txtCreatorID" class="tdinput" runat="server"
                                disabled="disabled"/>
                            <input type="text" id="txtCreatorName" name="txtCreatorName" class="tdinput" runat="server"
                                disabled="disabled" />
                        </td>
                        <td height="20" align="right" class="tdColTitle" width="10%">
                            制单日期
                        </td>
                        <td height="20" class="tdColInput" width="23%">
                            <asp:TextBox ID="txtCreateDate" MaxLength="50" runat="server" CssClass="tdinput"
                                disabled="disabled" Width="95%" Text=""></asp:TextBox>
                        </td>
                        <td class="tdColTitle" width="10%">
                            单据状态
                        </td>
                        <td class="tdColInput" width="24%">
                            <input type="hidden" id="txtBillStatusID" name="txtBillStatusID" class="tdinput"
                                value="1" />
                            <input type="text" id="txtBillStatusName" name="txtBillStatusName" class="tdinput"
                                value="制单" disabled="disabled"/>
                        </td>
                    </tr>
                    <tr>
                        <td align="right" class="tdColTitle">
                            确认人
                        </td>
                        <td class="tdColInput">
                            <input type="hidden" id="txtConfirmorID" name="txtConfirmorID" value="0" class="tdinput"
                                runat="server" disabled="disabled" />
                            <input type="text" id="txtConfirmorName" name="txtConfirmorName" class="tdinput"
                                disabled="disabled" runat="server"  />
                        </td>
                        <td align="right" class="tdColTitle">
                            确认日期
                        </td>
                        <td align="left" class="tdinput">
                            <asp:TextBox ID="txtConfirmorDate" MaxLength="50" runat="server" CssClass="tdinput"
                                disabled="disabled" Width="95%" Text=""></asp:TextBox>
                        </td>
                        <td align="right" class="tdColTitle">
                            最后更新人
                        </td>
                        <td class="tdColInput">
                            <input type="hidden" id="txtModifiedUserID" name="txtModifiedUserID" value="0" class="tdinput"
                                runat="server" disabled="disabled" />
                            <input type="text" id="txtModifiedUserName" name="txtModifiedUserName" class="tdinput"
                                disabled="disabled" runat="server"  />
                        </td>
                    </tr>
                    <tr>
                        <td height="20" align="right" class="tdColTitle">
                            结单人
                        </td>
                        <td height="20" align="left" class="tdColInput">
                            <input type="hidden" id="txtCloserID" name="txtCloserID" value="0" class="tdinput"
                                runat="server" disabled="disabled" />
                            <input type="text" id="txtCloserName" name="txtCloserName" class="tdinput" runat="server"
                                disabled="disabled" />
                        </td>
                        <td height="20" align="right" class="tdColTitle">
                            结单日期
                        </td>
                        <td height="20" align="left" class="tdColInput">
                            <asp:TextBox ID="txtCloseDate" MaxLength="50" runat="server" CssClass="tdinput" Width="95%"
                                disabled="disabled" Text=""></asp:TextBox>
                        </td>
                        <td align="right" class="tdColTitle">
                            最后更新日期
                        </td>
                        <td align="left" class="tdinput">
                            <asp:TextBox ID="txtModifiedDate" MaxLength="50" runat="server" CssClass="tdinput"
                                disabled="disabled" Width="95%" Text=""></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="tdColTitle" width="100">
                            备注
                        </td>
                        <td class="tdColInput" colspan="5">
                            <asp:TextBox ID="txtRemark" runat="server" CssClass="tdinput" Width="99%"></asp:TextBox>
                        </td>
                    </tr>
                </table>
                <br />
                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                        <td valign="top">
                            <img src="../../../images/Main/Line.jpg" width="122" height="7" />
                        </td>
                        <td align="right" valign="top">
                            <img src="../../../images/Main/LineR.jpg" width="122" height="7" />
                        </td>
                        <td width="8">
                        </td>
                    </tr>
                    <tr>
                        <td height="25" valign="top">
                            &nbsp; <span class="Blue">采购询价单明细</span>
                        </td>
                        <td align="right" valign="top">
                            <div id='searchClick3'>
                                <img src="../../../images/Main/close.jpg" style="cursor: pointer" border="0" onclick="oprItem('Tb_04','searchClick3')" /></div>
                        </td>
                        <td width="10">
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td colspan="2" id="Tb_04">
                <!-- Start 销售订单选择 -->
                <!-- End 销售订单选择 -->
                <table width="99%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#999999">
                    <tr>
                        <td height="28" bgcolor="#FFFFFF" valign="bottom">
                            <img runat="server" visible="false" src="../../../images/Button/Show_add.jpg" style="cursor: hand" id="imgAdd" onclick="ShowProdInfo();" />
                            <img runat="server" visible="false" alt="" src="../../../Images/Button/UnClick_tj.jpg" style=" display: none;" id="imgUnAdd" />
                            <img runat="server" visible="false" src="../../../images/Button/Show_del.jpg"  style="cursor: hand" id="imgDel" onclick="DeleteAskPriceSignRow();" />
                            <img runat="server" visible="false" alt="" src="../../../Images/Button/UnClick_del.jpg"  style=" display: none;" id="imgUnDel" />
                            <img src="../../../images/Button/btn_kckz.jpg" style="cursor: hand" onclick="ShowSnapshot();" alt="库存快照" />
                            <img runat="server" visible="false" src="../../../Images/Button/Bottom_btn_From.jpg" style="cursor: hand;display: none;" id="imgGetDtl" onclick="fnSelectSource();" />
                            <img runat="server" visible="false" alt="从源单选择明细" src="../../../Images/Button/Unclick_From.jpg" id="imgUnGetDtl"  style=" display: inline" />
                            <img alt="条码扫描" visible="false" src="../../../Images/Button/btn_tmsm.jpg" id="btnGetGoods"  style="cursor: pointer" onclick="GetGoodsInfoByBarCode()" runat="server"   />
                            <uc15:GetGoodsInfoByBarCode ID="GetGoodsInfoByBarCode1" runat="server" />
                           
                            <input type="hidden" id="DetailCount" runat="server" value="1" /><uc4:Message 
                                ID="Message1" runat="server" />
                            
                                <div style="display:none">
                            <asp:DropDownList ID="HidApplyReason" runat="server">
                            </asp:DropDownList>
                            </div>
                            <uc7:PurchasePlanUC ID="PurchasePlanUC1" runat="server" />
                            <uc6:PurchaseApplyUC ID="PurchaseApplyUC1" runat="server" />
                        </td>
                    </tr>
                </table>
                <!-- Start Product Info-->
                <!-- End Product Info -->
                <div style="width: 99%; overflow-x: auto;  height: 180px;">
                <table width="150%" border="0" id="DetailTable" 
                    align="center" cellpadding="0" cellspacing="1" bgcolor="#999999">
                    <tr>
                        <td bgcolor="#E6E6E6" class="Blue" width="50" align="center">
                            <input type="checkbox" name="checkall" id="checkall" onclick="fnSelectAll()" title="全选"
                                style="cursor: hand" />
                        </td>
                        <td align="center" bgcolor="#E6E6E6" class="ListTitle" align="center">
                            序号
                        </td>
                        <td align="center" bgcolor="#E6E6E6" class="ListTitle" valign="middle">
                            物品编号<span class="redbold">*</span>
                        </td>
                        <td align="center" bgcolor="#E6E6E6" class="ListTitle" valign="middle">
                            物品名称<span class="redbold">*</span>
                        </td>
                        <td align="center" bgcolor="#E6E6E6" class="ListTitle">
                            规格 
                        </td>
                         <td align="center" bgcolor="#E6E6E6" class="ListTitle">
                           颜色
                        </td>
                        <td align="center" bgcolor="#E6E6E6" class="ListTitle">
                            <span id="SpProductCount">计划数量</span><span class="redbold" id="spCount">*</span>
                        </td>
                          <td align="center" bgcolor="#E6E6E6" class="ListTitle"  style="width:5%; display:none " id="spUsedUnitCount">
                            计划数量 <span class="redbold">*</span>
                        </td>
                        
                        <td align="center" bgcolor="#E6E6E6" class="ListTitle">
                            交货日期<span class="redbold">*</span>
                        </td>
                            
                        <td align="center" bgcolor="#E6E6E6" class="ListTitle" valign="middle">
                           <span id="spUnitID">单位</span> <span class="redbold" id="spUnitIDMoon">*</span>
                        </td>
                        <td align="center" bgcolor="#E6E6E6" class="ListTitle" valign="middle" style="width:4%; display:none " id="spUsedUnitID">
                           单位 <span class="redbold">*</span>
                        </td>
                        <td align="center" bgcolor="#E6E6E6" class="ListTitle" valign="middle" id="spUnitPrice" >
                            单价<span class="redbold">*</span>
                        </td>
                        <td align="center" bgcolor="#E6E6E6" class="ListTitle" valign="middle" style="width:5%; display:none " id="spUsedPrice" >
                            单价<span class="redbold">*</span>
                        </td>
                        
                        <td align="center" bgcolor="#E6E6E6" class="ListTitle" valign="middle">
                            含税价<span class="redbold">*</span>
                        </td> 
                        <td align="center" bgcolor="#E6E6E6" class="ListTitle">
                            税率(%)
                        </td>
                        <td align="center" bgcolor="#E6E6E6" class="ListTitle">
                            金额
                        </td>
                        <td align="center" bgcolor="#E6E6E6" class="ListTitle">
                            含税金额
                        </td>
                        <td align="center" bgcolor="#E6E6E6" class="ListTitle">
                            税额<span class="redbold">*</span>
                        </td>
                        <td align="center" bgcolor="#E6E6E6" class="ListTitle" style="width:5%">
                            原因
                        </td> 
                        <td align="center" bgcolor="#E6E6E6" class="ListTitle">
                            源单编号
                        </td>
                        <td align="center" bgcolor="#E6E6E6" class="ListTitle">
                            源单序号
                        </td>
                    </tr>
                </table>
                <uc11:StorageSnapshot ID="StorageSnapshot1" runat="server" />
                </div>
                <table width="99%" border="0" align="center" cellpadding="0" cellspacing="0">
                    <tr>
                        <td height="2" bgcolor="#999999">
                            <uc3:ProviderInfo ID="ProviderInfo2" runat="server" />
                        </td>
                    </tr>
                </table>
                <br />
                <input name='txtTRLastIndex' type='hidden' id='txtTRLastIndex' value="1" />
                <input name='TempData' type='hidden' id='TempData' />
            </td>
        </tr>
    </table>
    <div id="divHistory" style="display:none"> 
        <iframe style="filter: Alpha(opacity=0);border: solid 10px #93BCDD; background: #fff;
             padding: 10px; width: 1000px; height:1000px; z-index: 1000; position: absolute;display:block;
            top: 50%; left: 40%; margin: 5px 0 0 -400px;">
        </iframe>
        <div style="border: solid 10px #93BCDD; background: #fff;
             padding: 10px; width: 1000px; z-index: 1001; position: absolute;display:block;
            top: 50%; left: 40%; margin: 5px 0 0 -400px;">
            <a onclick="closeHistory()" style="text-align: left; cursor: pointer">
                    关闭</a>
            <table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" id="History"
                    bgcolor="#999999">
                <tbody>  
                    <tr class="table-item">
                        <td align="center" bgcolor="#E6E6E6" class="ListTitle">
<%--                            <div class="orderClick" onclick="OrderBy('AskOrder','Span1');return false;">
--%>                                询价次数<span id="Span1" class="orderTip"></span> 
                        </td>
                        <td align="center" bgcolor="#E6E6E6" class="ListTitle">
<%--                            <div class="orderClick" onclick="OrderBy('CountTotal','Span18');return false;">
--%>                                数量合计<span id="Span18" class="orderTip"></span> 
                        </td>
                        <td align="center" bgcolor="#E6E6E6" class="ListTitle">
<%--                            <div class="orderClick" onclick="OrderBy('TotalPrice','Span19');return false;">
--%>                                金额合计<span id="Span19" class="orderTip"></span> 
                        </td>
                        <td align="center" bgcolor="#E6E6E6" class="ListTitle">
<%--                            <div class="orderClick" onclick="OrderBy('TotalTax','Span20');return false;">
--%>                                税额合计<span id="Span20" class="orderTip"></span> 
                        </td>
                        <td align="center" bgcolor="#E6E6E6" class="ListTitle">
<%--                            <div class="orderClick" onclick="OrderBy('TotalFee','Span21');return false;">
--%>                                含税金额合计<span id="Span21" class="orderTip"></span> 
                        </td>
                        <td align="center" bgcolor="#E6E6E6" class="ListTitle">
<%--                            <div class="orderClick" onclick="OrderBy('Discount','Span22');return false;">
--%>                                整单折扣<span id="Span22" class="orderTip"></span> 
                        </td>
                        <td align="center" bgcolor="#E6E6E6" class="ListTitle">
<%--                            <div class="orderClick" onclick="OrderBy('DiscountTotal','Span23');return false;">
--%>                                整单折扣金额<span id="Span23" class="orderTip"></span> 
                        </td>
                        <td align="center" bgcolor="#E6E6E6" class="ListTitle">
<%--                            <div class="orderClick" onclick="OrderBy('RealTotal','Span24');return false;">
--%>                                整单折后金额<span id="Span24" class="orderTip"></span> 
                        </td>
                    </tr>
                </tbody>  
            </table>
            
            
                <table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#999999"
                    class="PageList">
                    <tr>
                        <td height="28" background="../../../images/Main/PageList_bg.jpg">
                            <table width="99%" border="0" align="center" cellpadding="0" cellspacing="0" class="PageList">
                                <tr>
                                    <td height="28" background="../../../images/Main/PageList_bg.jpg" width="40%">
                                        <div id="pagecount">
                                        </div>
                                    </td>
                                    <td height="28" align="right">
                                        <div id="pageDataList1_Pager" class="jPagerBar">
                                        </div>
                                    </td>
                                    <td height="28" align="right">
                                        <div id="divpage">
                                            <input name="text2" type="text" id="Text2" style="display: none" />
                                            每页显示<input name="ShowPageCount" type="text" id="ShowPageCount" maxlength="4" size="3" />条&nbsp;&nbsp;
                                            转到第<input name="ToPage" type="text" id="ToPage" maxlength="4" size="3" />页&nbsp;&nbsp;
                                            <img src="../../../images/Button/Main_btn_GO.jpg" style='cursor: pointer;' alt="go"
                                                width="36" height="28" align="absmiddle" onclick="ChangePageCountIndex($('#ShowPageCount').val(),$('#ToPage').val());" />
                                        </div>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
        </div>
    </div>
    </form>
    <span id="Forms" class="Spantype" name="Forms"></span>
</body>
 
<script language="javascript" type="text/javascript">
        var glb_BillTypeFlag = <%=XBase.Common.ConstUtil.CODING_RULE_PURCHASE %>;
        var glb_BillTypeCode = <%=XBase.Common.ConstUtil.CODING_RULE_PURCHASE_ASKPRICE %>;
        var glb_BillID = document.getElementById("ThisID").value;//单据ID
        var glb_IsComplete = true;
        var FlowJS_HiddenIdentityID ='ThisID';
        var FlowJs_BillNo ='PurAskPriceNo_txtCode';
        var FlowJS_BillStatus ='txtBillStatusID';
</script>

    <script src="../../../js/common/Flow.js" type="text/javascript"></script>
    <script src="../../../js/Office/PurchaseManager/PurchaseAskPriceAdd.js" type="text/javascript"></script>
</html>
